<?php namespace app\admin\controller;

class Link extends Common {
	protected $db;
	public function __init()
	{
		$this->db = new \system\model\Link();
	}
    //动作
    public function index(){
    //此处书写代码...
		return view();
    }
    /**
	 * 添加友情链接
	 */
    public function store()
	{
		if(IS_POST)
		{
			$this->db->store();
		}
		return view();
	}
}
